package com.wxh.config;

        import org.springframework.context.annotation.Configuration;
        import org.springframework.security.config.annotation.web.builders.WebSecurity;
        import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @ClassName: WebSecurityConfig
 * @Description: web配置所有URL放开权限
 * @Author wxh
 * @Date: 2019/8/15 9:34
 * @Version V1.0.0
 * @Since 1.8
 */
@Configuration
public class WebSecurityConfig  extends WebSecurityConfigurerAdapter {
    @Override
    public void configure(WebSecurity web) throws Exception {
        web.ignoring(). antMatchers("/swagger-ui.html")
                .antMatchers("/webjars/**")
                .antMatchers("/v2/**")
                .antMatchers("/swagger-resources/**")
                .antMatchers("/**");
    }
}
